import axios from '@/api/fetch';
import SERVER from '@/api/server';
import config from '@/assets/js/config';

// 列表查询
export const getList = params => axios.get(`/api/cmscloud.excel/asyncDownload/getListDown`, { params });
//修改下载状态
export const updateDownlod = (fileId, params) => axios.post(`/api/cmscloud.excel/asyncDownload/updateDownlod/${fileId}`, { params });
//获取文件服务器key
export const getFileKey = () => axios.post(`/api/file/oss/getFileKey`);

//根据私有照片文件地址得到临时访问下载地址
export const findFileByUrl = params => axios.post(`${config.uploadUrl}/api/file/download/url?fileUrl=` + params);
